/*
	The directives starting with # below ensures that this file is read by the compiler only once
	even if it is #included several times. It is call an "include guard"
*/
#ifndef CATEGORY_H_
#define CATEGORY_H_

#include <string>
#include <sstream>

using namespace std;

struct Category {
public:
	// constructors
	Category () {}
	Category(int p_cat_id, string p_cat_name) : 
		cat_id(p_cat_id), cat_name(p_cat_name) { }

    // utility functions
	string display() const	//RY
	{
		stringstream str;
		str << cat_id << "\t" << cat_name;
		return str.str();
	}
	
	int getcatid() {
		return cat_id;
	}
	
	string getcatname() {
		return cat_name;
	}

//private:
   //constants
     
   // private data
	int cat_id;
	string cat_name;
};


#endif //CATEGORY_H_
